using System;
using System.Collections.Generic;
using System.Text;

namespace nrpcfx.org.qsoft.rpcfx.bean
{
    public interface IObjectWriter
    {
        // objects

        void write(object obj, string name);

        void writeArray(object obj, string name);

        void writeList(object obj, string name);

        void writeMap(object obj, string name);


        // details

        void writeNode(object obj, string name);

        void writeStart(string name, string type);

        void writeEnd();


        // result 

        string Serialize(object target);
    }
}
